from common.poium import Page, PageElement
from common.settings import LOGIN_ACCOUNT_XPATH, LOGIN_PASSWORD_XPATH, LOGIN_BUTTON_XPATH


class LoginPage(Page):
    """登录页面"""
    ### 登录页面元素少，用xpath更方便
    account = PageElement(xpath=LOGIN_ACCOUNT_XPATH, describe='账号输入框')
    password = PageElement(xpath=LOGIN_PASSWORD_XPATH, describe='密码输入框')
    login_btn = PageElement(xpath=LOGIN_BUTTON_XPATH, describe='登录按钮')